package com.seh.contentcenter.feignclient;

import com.seh.contentcenter.dto.UserDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "seh-user-center")
public interface UserCenterFeignClient {
    /**
     * 查询用户信息
     * @param userId
     * @return
     */
    @GetMapping("/user/findUserInfoById/{userId}")
    UserDTO findUserInfoById(@PathVariable Integer userId);

    /**
     * 更新用户信息
     * @param userDTO
     * @return
     */
    @PostMapping("/user/updateUserInfo")
    String updateUserInfo(@RequestBody UserDTO userDTO);
}
